package cn.sharp.bbs.dao;

import cn.sharp.bbs.entity.DO.Datadict;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface DataDictDao {
    @Select("select * from t_data_dict where ddict_type=#{type} and ddict_code=#{code}")
    Datadict selectByTypeAndCode(String type, int code);
    @Select("select * from t_data_dict where ddict_type=#{type} and ddict_name=#{name}")
    Datadict selectByTypeAndName(String type, String name);
    @Select("select * from t_data_dict where ddict_type=#{type}")
    List<Datadict> listByType(String type);
}
